#!/bin/sh

message=`cat $1`

if [ ${#message} == 0 ]; then
    echo "Error: Empty commit message is not allowed."
    exit 1
fi

if [[ ${message:0:1} != [A-Z] ]]; then
    echo "Error: The first letter of the message must be capitalized."
    exit 1
fi
